﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Wijmo/Views/Shared/ViewMasterPage1.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Dialog
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <input type="button" value="Hide Dialog" onclick="$('#dialog').wijdialog('close')" />
        <input type="button" value="Show Dialog" onclick="$('#dialog').wijdialog('open')" />
        <%--        <div id="dialog" title="Basic dialog">
        </div>--%>
    </div>
    <script id="scriptInit" type="text/javascript">
        $(function () {
            $("#formDialog").remove();
            $('<div id="formDialog"></div>').wijdialog({
                contentUrl: "http://google.com.vn",
                captionButtons: {
                    pin: { visible: false },
                    refresh: { visible: false },
                    toggle: { visible: false },
                    minimize: { visible: false },
                    maximize: { visible: false }                   
                },
                moveable: true,
                buttons: {
                    "Delete all items": function () {
                        $(this).wijdialog("close");
                    },
                    "Cancel": function () {
                        $(this).wijdialog("close");
                    }
                },
                autoopen: false,
                show: 'puff',
                hide: 'drop',
                autoResize: false,
                //width: 840,
                //height: 640,
                //contentUrl: 'http://www.google.com',
                modal: true,
                buttoncreating: function (e, data) {
                    data[5].info.click = function () {
                        i();
                    };
                }
            });
            $('#dialog').wijdialog("close");
        });
    </script>
    <hr />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderCss" runat="server">
    <link href="<%=Html.AreaCssPath("Wijmo") %>base-reset.css" rel="stylesheet" type="text/css" />
    <link href="<%=Html.AreaCssPath("Wijmo") %>themes/wijmo/jquery.ui.wijdialog.css"
        rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderScript" runat="server">
    <script src="<%=Html.AreaScriptPath("Wijmo") %>wijmo/jquery.ui.wijutil.js" type="text/javascript"></script>
    <script src="<%=Html.AreaScriptPath("Wijmo") %>wijmo/jquery.ui.wijdialog.js" type="text/javascript"></script>
</asp:Content>
